# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models
from datetime import datetime

# Create your models here.
class CoinHistory(models.Model):
    coin_type = models.CharField(max_length=20)
    time = models.DateTimeField()
    price = models.FloatField()
    buy_amount = models.FloatField()
    sell_amount = models.FloatField()
    is_ok = models.BooleanField(default=True)

    class Meta:
        db_table= "CoinHistory"
